package chap_3_selections;

import java.util.Scanner;

public class Switch_case {
	public static void main(String[] args){
		
		String day;
		
		System.out.println("Please input a day in a week: ");
		Scanner scanner = new Scanner(System.in);
		
		day = scanner.next();
		System.out.println("Input is: " + day);
		
		switch(day.toLowerCase())
		{
			case "monday":
				System.out.println("This is Mon.");
				break;
			case "tuesday":
				System.out.println("This is Tue.");
				break;
			case "wednesday":
				System.out.println("This is Wed.");
				break;
			case "thursday":
				System.out.println("This is Thu.");
				break;
			case "friday":
				System.out.println("This is Fri.");
				break;
			case "saturday":
				System.out.println("This is Sat.");
				break;
			case "sunday":
				System.out.println("This is Sun.");
				break;				
			default:
				System.out.println("Error");
		}
		
		scanner.close();
	}
}
